//
//  HJPositioning.h
//  KaiChat
//
//  Created by lx on 2023/11/13.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class HJPositioning;

@protocol HJPositioningDelegate <NSObject>

- (void)positioningSucceed:(HJPositioning *)positioning;
- (void)positioningFail:(HJPositioning *)positioning error:(NSError *)error;


@end

@interface HJPositioning : NSObject

@property (copy, nonatomic) NSString *place;
@property (copy, nonatomic) NSString *province;
@property (nonatomic, copy) NSString *subThoroughfare;
@property (copy, nonatomic) NSString *city;
@property (copy, nonatomic) NSString *area;
@property (copy, nonatomic) NSString *detailedAddress;
@property (copy, nonatomic) NSString *latitude;
@property (copy, nonatomic) NSString *longitude;
@property (nonatomic, weak) id <HJPositioningDelegate>delegate;

- (void)start;
- (void)stop;


@end

NS_ASSUME_NONNULL_END
